import Vue from 'vue'
import Vuex from 'vuex'
import actions from './actions'
import mutations from './mutations'

Vue.use(Vuex)

const state = {
  userName: '',
  count: 0,
  cart: [],
  user: {
  },
  shopId: "",
  shop: {},
  submitGoods: {
    goodsNum: [],
    totalNum: 0,
    totalPrice: 0
  },
  roomId: "",
  productId: '',
  checkTransactionId: "",
  orderId: '',
  result: {},
  roomInfo: {},
  borrow: {},
  paySpinning: false,
  payInfo: {},
  locatePage: '',
  leaseInfo: false,
  latitude: '',
  longitude: '',
  travelId: '',
  showLandscape: false
}

export default new Vuex.Store({
  state,
  actions,
  mutations
})
